package com.runvp.service.biz.domain;

import com.runvp.common.annotation.Excel;
import com.runvp.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 设备端口对象 biz_device_cargo
 *
 * @author runvp
 * @date 2022-12-24
 */
@ToString
@Getter
@Setter
public class BizDeviceCargo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 租户标识 */
    @Excel(name = "租户标识")
    private Long tenantId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 设备好 */
    @Excel(name = "设备号")
    private String deviceSn;

    /** 端口编号 */
    @Excel(name = "端口编号")
    private Integer number;

    /** 端口容量 */
    @Excel(name = "端口容量")
    private Integer capacity;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private Long goodsCategory;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String goodsDiagram;

    /** 商品售价 */
    @Excel(name = "商品售价")
    private BigDecimal goodsPrice;

    /** 商品进价 */
    @Excel(name = "商品进价")
    private BigDecimal goodsCostPrice;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Integer goodsStock;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal goodsDiscount;

    /** 端口状态 */
    @Excel(name = "端口状态")
    private String useStatus;
    /** 启用状态 */
    @Excel(name = "启用状态")
    private String status;

    public BizDeviceCargo() {
    }

    public BizDeviceCargo(String deviceSn, Integer number) {
        this.deviceSn = deviceSn;
        this.number = number;
    }

    public BizDeviceCargo(Long id, Long tenantId, Long deviceId, String deviceSn, Integer number, Integer capacity, Long goodsCategory, Long goodsId, String goodsName, String goodsDiagram, BigDecimal goodsPrice, BigDecimal goodsCostPrice, Integer goodsStock, BigDecimal goodsDiscount, String useStatus, String status) {
        this.id = id;
        this.tenantId = tenantId;
        this.deviceId = deviceId;
        this.deviceSn = deviceSn;
        this.number = number;
        this.capacity = capacity;
        this.goodsCategory = goodsCategory;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsDiagram = goodsDiagram;
        this.goodsPrice = goodsPrice;
        this.goodsCostPrice = goodsCostPrice;
        this.goodsStock = goodsStock;
        this.goodsDiscount = goodsDiscount;
        this.useStatus = useStatus;
        this.status = status;
    }
}
